/**
 * Created by shanyun.gu on 2017/3/31.
 */
define(["ngApp"], function (ngApp) {
        ngApp.factory("permissionFactory", function () {
            var permissions = null;
            var permissionFn = {};
            permissionFn.set = function (permissions) {
                this.permissions = permissions
            };
            permissionFn.has = function (path,permission) {
                if (permission && typeof permission === "string" && permission.trim().length > 0) {
                    return true;
                }
                return false;
            };
            return permissionFn;
        });
});